package com.sign.common.exception;

public class ServiceException extends RuntimeException {
    private static final long serialVersionUID = 1L;



    private String errMsg;
    private Integer retCode =500;

    public ServiceException(String msg) {
        super(msg);
        this.errMsg = msg;
    }

    public ServiceException(String msg, Throwable e) {
        super(msg, e);
        this.errMsg = msg;
    }

    public ServiceException(String msg, int code) {
        super(msg);
        this.errMsg = msg;
        this.retCode = code;
    }

    public ServiceException(String msg, int code, Throwable e) {
        super(msg, e);
        this.errMsg = msg;
        this.retCode = code;
    }


    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public Integer getRetCode() {
        return retCode;
    }

    public void setRetCode(Integer retCode) {
        this.retCode = retCode;
    }
}
